home *** CD-ROM | disk | FTP | other *** search
- on pickYeah which
- global gStuMethod
- highlightYeahSnd(which)
- updateStage()
- if which = 4 then
- else
- puppetSound(the name of cast (the number of cast "Harp" + which - 1))
- updateStage()
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- end if
- setaProp(gStuMethod, #yes_sound, which)
- end
-
- on pickNo which
- global gStuMethod
- highlightNoSnd(which)
- updateStage()
- if which = 4 then
- else
- puppetSound(the name of cast (the number of cast "Organ" + which - 1))
- updateStage()
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- end if
- setaProp(gStuMethod, #no_sound, which)
- end
-
- on adjVolume dx
- global gPathList, gStuMethod
- set vol to the text of cast "Volume"
- set vol to integer(vol + dx)
- if vol > 7 then
- set vol to 7
- else
- if vol < 1 then
- set vol to 1
- end if
- end if
- registerVolume(vol)
- setVolButton(vol)
- updateStage()
- if the stillDown then
- repeat while the lastClick < 30
- nothing()
- end repeat
- set nextTime to the ticks + 15
- repeat while the stillDown
- if (the ticks > nextTime) and ((vol + dx) <= 7) and ((vol + dx) >= 1) then
- set vol to integer(vol + dx)
- set nextTime to the ticks + 15
- registerVolume(vol)
- setVolButton(vol)
- updateStage()
- end if
- end repeat
- end if
- set fname to makeImagePath(gPathList, #sound, 1)
- sound playFile 1, fname
- updateStage()
- set startTicks to the ticks
- repeat while soundBusy(1) and (the ticks < (startTicks + 120))
- end repeat
- sound stop 1
- setaProp(gStuMethod, #volume, vol)
- end
-
- on adjTime dx
- global gTimerTicks
- set time to the text of cast "TimerSecs"
- set time to integer(time + dx)
- if time > 30 then
- set time to 30
- else
- if time < 1 then
- set time to 1
- end if
- end if
- set the text of cast "TimerSecs" to string(time)
- if the stillDown then
- repeat while the lastClick < 30
- nothing()
- end repeat
- set nextTime to the ticks + 15
- repeat while the stillDown
- if (the ticks > nextTime) and ((time + dx) <= 30) and ((time + dx) >= 1) then
- set time to integer(time + dx)
- set nextTime to the ticks + 15
- set the text of cast "TimerSecs" to string(time)
- updateStage()
- end if
- end repeat
- end if
- set gTimerTicks to time * 60
- updateStage()
- end
-